<!-- 大事提醒 -->
<template>
    <div class="table w1021">
        <div class="tableTr tableBody top flex" v-for="(item,index) in data" :key="index">
            <span class="tableTd w130">{{ item.type }}</span>
            <span
                class="orange tableTd w760 txtLeft"
                :class="{underline:item.url}"
                @click="detail(item)"
            >{{ item.title }}</span>
            <span class="orange tableTd w130">{{ item.publDate }}</span>
        </div>
        <div class="tableNone orange w1021 top" v-if="data.length==0">暂无数据</div>
    </div>
</template>

<script>

import {BASE_URL} from "@/common/const";
import {openWeb} from "@/common/common";

export default {
    data() {
        return {};
    },
    props: ["data",'title'],
    methods: {
        detail(ops) {
            if(ops.url != ""){
                const url = this.urlAbsolute(`/newDetail/index.html?type=3&url=${ops.url}`);
                openWeb(url,this.title,1);
            }
        }
    }
};
</script>
<style lang="scss" scoped>
</style>